<?php
    require_once 'config.php';
?>
<html>
    <head>
        <title>FHPI</title>
        <link rel="stylesheet" href="<?php echo $config['path']; ?>style/style.css" media="all" />
        <link rel="icon" type="image/png" href="<?php echo $config['path']; ?>img/favicon.png">
    </head>
    <body>
        <img src="<?php echo $config['path']; ?>img/logo.png" alt="FH JOANNEUM FHPI Server" />
        <div class="center">
            FH JOANNEUM FHPI Server @ <?php echo date("d.m.Y H:i:s", time()); ?>
        </div>
        <?php
            if(isset($_GET['e'])){
                switch($_GET['e']){
                    case '404':
                        $msg = "You are looking for something that isn't there.";
                        break;
                    default:
                        $msg = "The server has been attacked by a polar bear and cannot be used right now.";
                }
                echo '<div class="center">'.$msg.'</div>';
            }
        ?>
        
        <div class="center" id="home_nav">
            <?php
                foreach($nav as $n){
                    echo '<a href="'.$config['path'].$n[1].'">'.$n[0].'</a>';
                }
            ?>
        </div>
    </body>
</html>